﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Helper.Metadata
{
    [MetadataType(typeof(BusinessMetadata))]

    public partial class Business { }

    public class BusinessMetadata
    {
        public BusinessMetadata()
        {

        }

        public BusinessMetadata(int _id, string _name, string _password)
        {
            this.Id = _id;
            this.Name = _name;
        }

        [Key]
        public int Id { get; set; }

        [Required(ErrorMessage="Digite o nome da empresa.")]
        [Display(Name="Razão Social")]
        public string Name { get; set; }
    }
    
}